package ch.unisi.inf.pfii.teamred.pacman.model;

/**
 * @author luca.vignola@lu.unisi.ch
 * 
 */
public final class PinkyController extends GhostController {

	public PinkyController() {
		super();
	}

	public final Direction move() {
		Direction directionToPacman = directionToPacmanUsingPosition();

		if (directionToPacman != null) {
			return directionToPacman;
		} else if (!canGoStraight(getAiControlledCreatureDirection())) {
			return getRandomDirection();
		} else {
			return getAiControlledCreatureDirection();
		}
	}
}
